<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates two buffer events connected to each other</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventbufferevent.construct.html">EventBufferEvent::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventbufferevent.disable.html">EventBufferEvent::disable</a></div>
 <div class="up"><a href="class.eventbufferevent.html">EventBufferEvent</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventbufferevent.createpair" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventBufferEvent::createPair</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventBufferEvent::createPair</span> &mdash; <span class="dc-title">Creates two buffer events connected to each other</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventbufferevent.createpair-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="type">array</span> 
   <span class="methodname"><strong>EventBufferEvent::createPair</strong></span>
    ( <span class="methodparam">
    <span class="type"><a href="class.eventbase.html" class="type EventBase">EventBase</a></span>
     <code class="parameter">$base</code>
   </span>
   [, <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$options</code>
    <span class="initializer"> = 0</span>
   </span>
  ] )</div>

  <p class="para rdfs-comment">
   Returns array of two
   <a href="class.eventbufferevent.html" class="classname">EventBufferEvent</a>
   objects connected to each other. All the usual options are supported,
   except for
   <strong><code>EventBufferEvent::OPT_CLOSE_ON_FREE</code></strong>
   , which has no effect, and
   <strong><code>EventBufferEvent::OPT_DEFER_CALLBACKS</code></strong>
   , which is always on.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventbufferevent.createpair-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <em><code class="parameter">base</code></em>
    </dt>

    <dd>

     <p class="para">
      Associated event base
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">options</code></em>
    </dt>

    <dd>

     <p class="para">
      <a href="" class="link">EventBufferEvent::OPT_* constants</a>
      combined with bitwise
      <em>OR</em>
      operator.
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventbufferevent.createpair-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns array of two
   <a href="class.eventbufferevent.html" class="classname">EventBufferEvent</a>
   objects connected to each other.
  </p>
 </div>

 <div class="refsect1 changelog" id="refsect1-eventbufferevent.createpair-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>1.9.0</td>
       <td>
        Method made static.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventbufferevent.construct.html">EventBufferEvent::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventbufferevent.disable.html">EventBufferEvent::disable</a></div>
 <div class="up"><a href="class.eventbufferevent.html">EventBufferEvent</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
